package indi.kider.server.woniubus.service.related;

import indi.kider.common.model.woniubus.LeaseBusQuery;
import indi.kider.common.model.woniubus.TenantInHouse;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import pers.vankid.common.model.base.CommonResponse;

/**
 */
@FeignClient(value = "sms")
public interface SmsService {

    /**
     * 成功短信
     * http://localhost:9002/sms/tenantSuccessSms
     * post
     * {
     *     houseNum:房间号,
     *     phone:'110'
     * }
     * @param tenantInHouse
     * @return
     */
    @PostMapping(value = "tenantSuccessSms")
    CommonResponse tenantSuccessSms(TenantInHouse tenantInHouse) ;


    /**
     * 拒绝短信
     * http://localhost:9002/sms/tenantFailSms
     *{
     *     phone:'110',
     *     partName:'网吧',
     *     partPhone:'120',
     * }
     * @param tenantInHouse
     * @return
     */
    @PostMapping(value = "tenantFailSms")
    CommonResponse tenantFailSms(TenantInHouse tenantInHouse) ;

    /**
     * 退房|换房审核通知
     * {
     *      phone:'110',
     *      tenantName:姓名,
     * }
     * @param leaseBus
     * @return
     */
    @PostMapping(value = "shSuccessSms")
    CommonResponse shSuccessSms(LeaseBusQuery leaseBus) ;
}
